package org.ezjava.rpc.dubbo.provider.rpc;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.thrift.TException;
import org.slf4j.Logger;
import org.springframework.stereotype.Component;

/**
 * @author Erik
 * @create 2021-08-04 16:43
 * @description
 **/

@DubboService(protocol = "thrift")
@Slf4j
public class HelloWorldServiceImpl implements HelloWorldService.Iface{

    public HelloWorldServiceImpl() {
        log.info("init HelloWorldServiceImpl");
    }

    @Override
    public String sayHello(String username) throws TException {
        username = "Hello fuck -- " + username;
        return username;
    }
}
